<html>
<head>
<title>View Cellular Broadcast By Your Choice</title>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/viewChoice.css" />
<script type="text/javascript" src="/script/geography.js"></script>
<script type="text/javascript" src="/script/cellular.js"></script>
</head>
<body onload="fillgeographic_region();">
	<%
		HttpSession session1 = request.getSession();
		String role = (String) session1.getAttribute("Role");
	%>
	<h2>View Cellular Data</h2>
	<form name="BroadcastForm" onsubmit="return choiceValidation()" action="<%=request.getContextPath()%>/CellularBroadcastServlet" target="_blank">
		<input type="hidden" name="action" value="viewCellularBroadcasts">
		<p>
		<div id="error">
			<font id="id1">Select only Geographic Region for viewing data for the whole region</font>
		</div>
		<table style="margin-left: 0px;">
			<tr>
				<th>Geographic Region:</th>
				<td><select name="geographic_region" onchange="Selectcountry();">
						<option value="">--Select geographic_region--</option>
				</select></td>
			</tr>
			<tr>
				<th>Country:</th>
				<td><select name="country">
						<option value="">--select country--</option>
				</select></td>
			</tr>
			<tr>
				<th>Cellular Technology:</th>
				<td><select name="cellular_technology">
						<option value="">--Select Cellular Technology--</option>
						<option value="GSM">GSM</option>
						<option value="CDMA">CDMA</option>
						<option value="4G">4G</option>
				</select></td>
			</tr>
			<tr>
				<th>Market Confirmation:</th>
				<td><select name="market_confirmation">
						<option value="">--Select Market Confirmation--</option>
						<option value="Agree">Agree</option>
						<option value="No Reply">No Reply</option>
				</select></td>
			</tr>
		</table>
		<br>
		<input type="submit" name="submit" value="View"><input type="reset" name="reset" value="Reset">
	</form>
	<%
		if (role.equalsIgnoreCase("Admin"))
		{
	%>
	<h2>Add Data</h2>
	<p>
		<a href="/jsp/addCellularBroadcast.jsp" target="iframe1">Add New Cellular Data</a>
	</p>
	<%
		}
	%>
	<h2>Reports</h2>
	<a href="https://docs.google.com/spreadsheet/ccc?key=0AkDCQ_IhBxYndE41V1JzOHIwZmRHbVdlSU9lWlJWYWc&usp=sharing" target="_blank">Cellular Report</a>
</body>
</html>